const webpack = require("webpack");
module.exports = {
  // 关闭ESLINT校验工具
  lintOnSave: false,
  //配置插件参数
  configureWebpack: {
    plugins: [
      //配置jQuery
      new webpack.ProvidePlugin({
        //引入jquery
        $: "jquery",
        jQuery: "jquery",
        "window.jQuery": "jquery",
      }),
    ],
  },
  //跨域
  devServer: {
    proxy: {
      "/api1": {
        target: "http://localhost:3006",
        pathRewrite: { "^/api1": "" },
      },
      "/api": {
        target: "http://39.98.123.211",
      },
    },
  },
};
